﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CodeGeneration.TextEngine;

namespace CodeGeneration
{
    public class Generator
    {
        private readonly ITextEngine _textEngine;

        public Generator(ITextEngine textEngine)
        {
            _textEngine = textEngine;
        }

        public void Generate<T>(T model, string file)
        {
            _textEngine.TransferText(model,file);
        }
    }
}
